export async function regexValidator(rule: any, value: string, regex: RegExp){
    return new Promise((resolve, reject) => {
        if (regex.test(value)) {
            resolve(null)
        } else {
            reject('格式验证错误')
        }
    })
}